package 线程.day2.demo5;

import java.util.Date;

public class A implements Runnable {
    @Override
    public void run() {
        while (true){
            System.out.println("当前时间："+new Date());
            try {
                Thread.sleep(200);
            } catch (InterruptedException e) {
                System.out.println("线程中断已收到！");
                return;
            }
        }
    }
}
